package com.fang.observer;

/**
 * @author fanglingxiao
 * @version 1.0
 * @description TODO
 * @date 2022/4/25 5:49 下午
 **/
public class TestObserver {
    public static void main(String[] args) {
        OrderStatusSubject subject = new OrderStatusSubject();
        OrderStatusObserver observer = new OrderStatusObserver();
        subject.attach(observer);
        subject.payCallback();
    }
}
